<script>
	export default {
		globalData: {  
			isReload: {
				recommend: true,
				trend: true,
				index: true,
				thermal: true,
				isShare: false
			}
		},
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
			let pages = getCurrentPages()
			if (!this.globalData.isReload.isShare) {
				if (pages['0'].route !== 'pages/index/index/index' || pages['1'].route !== 'pages/index/index/index') {
					wx.switchTab({
						url: '/pages/index/index/index'
					})
				}
			}
		}
	}
</script>

<style>
	/*每个页面公共css */
	.wrap{
		padding: 0 30rpx;
	}
	.icon-title{
		line-height: 40rpx;
		border-bottom: 1rpx solid #f2f2f2;
		padding-bottom: 10rpx;
	}
	.icon-title .icon-img {
		display: inline-block
	}
	.icon-title .text{
		padding-left: 10rpx;
		font-size: 26rpx;
		color: #292d30
	}
	.sd-card{
		margin-bottom: 20rpx;
		background: #fff;
	}
	.sd-card-title{
		border-bottom: 1px solid #e7e6e6;
		padding: 20rpx 20rpx 15rpx;
		color: #2c2e33;
		font-size:30rpx;
	}
	.sd-card-title .icon{
		margin-right: 12rpx;
	}
	.sd-card-cont{
		padding:30rpx 20rpx;
		position: relative;
		z-index: 1;
	}
	.f2-canvas{
		position: relative;
		z-index: 1 !important;
	}
	.nodata{
		width: 100%;
		height: 500rpx;
		padding: 190rpx 0 0;
		text-align: center;
		background: url(https://cdn.xtde.cn/wxapp/xtde/nodata.png) no-repeat center 50rpx;
		background-size: 83% auto;
		color: #999;
		font-size: 30rpx;
		line-height: 1.5;
	}
	.skeleton-table-item{
		padding:30rpx 0;
	}
</style>
